:root {
  --custom-headers-font-family: "GT Eesti Pro Display", sans-serif;
  --custom-page-font-family: "Merriweather"; 
  --sidebar-width: 280px; /* override */
  --content-max-width: 820px; /* override */
  --code-font-size: 0.9em; /* override; please adjust the ace font size accordingly in editor.js - what is editor.js?? - original size: 0.875em */
}

body{
  font-size: 1.8rem;
}
.myheader {
  position:relative;
  background: rgb(2,0,36);
  background: linear-gradient(45deg, rgba(2,0,36,1) 0%, rgba(0,83,156,1) 28%, rgba(81,255,170,1) 28%, rgba(0,61,111,1) 100%);
  padding: 20px;
  width: calc(100%-40px);
  height: 40px;
  font-size: 2em;
  letter-spacing: 0.1em;
  font-family: "Montserrat-Light", sans-serif; 
  color: rgba(255, 255, 255, 0.35);
  text-shadow: 0px 2px 10px rgba(32, 0, 14, 0.35);
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  
  z-index: 999;
}

h1 {
  font-size: 4.6rem;
  line-height: 5.6rem;
  font-family: var(--custom-headers-font-family); 
  margin-top: 0.5em;
  margin-bottom: 0em; 
  text-align: center;
}

h2, h3, h4, h5 { 
  font-family: var(--custom-headers-font-family); 
  margin-top: 1.2rem; 
  margin-bottom: 0em; 
}

h3 { 
  margin-top: 0.8rem; 
}

h4, h5 { 
  margin-top: 0.4rem; 
}

.page {
  font-size: 2rem; 
}

.content {
  padding-bottom: 50px;
}

.content img, .content video { 
  display: block;
  margin: 0 auto;
  border-radius: 16px;
}

.content img {
  max-width: 600px;
  max-height: 440px;
  object-fit: contain; /* Ensures the image maintains its aspect ratio */
}

.content ul { 
  margin-top: 0.25em; 
 }

 .content li { 
  margin-top: 0.5em; 
}

.content .page-date, .content .img-title {
  font-family: var(--custom-headers-font-family); 
  color: var(--page-date-color);
  text-align: center;
  font-weight: bold;
  font-size: 0.8em;
  margin-top: 0.25em;
  margin-bottom: 1em;
}

.content .img-title {
  margin-top: -1em; /* workaround xd */
}

.content p, .content img, .content video { 
  margin-top: 0.9em; 
  margin-bottom: 1.1em; 
  line-height: 1.65;
}

.content main {
  font-family: var(--custom-page-font-family);
  background-color: var(--content-bg-color);
  font-size: 1.9rem;
  margin-left: auto;
  margin-right: auto;

  margin-top: 0.5em;
  border-radius: 30px;

  padding: 20px 60px;
}

@media (max-width: 450px) {  /* mobile devices workaround */
  h1 {
    font-size: 2.8rem;
    line-height: 3.8rem;
  }
  .page {
    font-size: 1.75rem; 
  }
  .content {
    padding: 0 0px;
    padding-bottom: 10px;
  }
  .content main {
    padding: 10px 20px;
    font-size: 1.75rem; 
  }
  .content img {
    max-width: 310px;
    max-height: 310px;
  }
}

/* Themes modification */

.ayu {
  --content-bg-color: hsl(210, 25%, 12%); 
  --page-date-color: hsl(210, 5%, 45%);
}

.coal {
  --page-date-color: hsl(200, 5%, 30%); 
  --content-bg-color: hsl(200, 7%, 10%); 
}

.light {
  --bg: hsl(0, 0%, 97%); /* override */
  --fg: #303030; /* override */
  --links: #2cadd1; /* override */
  --sidebar-active: #11b3a2; /* override */

  --content-bg-color: hsl(0, 0%, 100%);
  --page-date-color: hsl(0, 0%, 70%); 
}

.navy {
  --content-bg-color: hsl(226, 23%, 14%); 
  --page-date-color: hsl(226, 15%, 45%);
}

.rust {
  --bg:  hsl(30, 15%, 87%); 
  --content-bg-color: hsl(30, 15%, 92%); 
  --page-date-color: hsl(35, 15%, 45%);
}